package com.tolls;

import com.sun.org.apache.xpath.internal.SourceTree;

import java.lang.invoke.LambdaMetafactory;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;

public class JavaUtills {

//    private  static Singleton  instance;
    private  String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private  static JavaUtills javaUtills = new JavaUtills();

    public static void main(String[] args) {

//        Comparator<Apple> byweight = (Apple a1, Apple a2) -> a1.getWeight().compareTo(a2.getWeight());
//        System.out.println(byweight.toString());

        String str = "a,b,c,d,e,f,g,n,";
        String[] arrStr = str.split(",");
        List<String> listStr = Arrays.asList(arrStr);

        listStr.forEach(it -> System.out.println(it) );
    }

    public String lambda(String s){

     return  "ff";
    }

    private void  run(){

    }




    public static <T> T Te(T t){

        System.out.println(t);
        return t;
    }

    public static  String str(){

        String s = "fff";
        s.equals("s");
        int n =3;

       javaUtills.equals("j");

        return "string";
    }






}
